
import axios from 'axios'


export function request(config) {

  const instance =axios.create({
      baseURL:'http://123.207.32.32:8000',
      timeout:5000,
      headers:{

      }
  });

  instance.interceptors.request.use(config=>{

    return config
  },error => {

  });

  instance.interceptors.response.use(data=>{

    return data.data;
  },error=>{

    console.log(error);
  });

  return  instance(config);
}
